from public.pages.basepage import BsaePage
from data.input_elem import Bbselem_Iput
from time import sleep
class Managework(BsaePage):
    def test_manage(self):
        sleep(2)
        elem1=BsaePage.search_elem(Bbselem_Iput.bbs_notice)
        BsaePage.click(elem1)
        elem2=BsaePage.search_elem(Bbselem_Iput.bbs_managework)
        BsaePage.click(elem2)
        elem3=BsaePage.search_elem(Bbselem_Iput.bbs_do_now)
        BsaePage.click(elem3)
        elem7=BsaePage.search_elem(Bbselem_Iput.bbs_admin_password)
        BsaePage.sendkeys(elem7,"123456")
        elem8=BsaePage.search_elem(Bbselem_Iput.bbs_tijiao)
        BsaePage.click(elem8)
        elem6=BsaePage.search_elem(Bbselem_Iput.bbs_framename1)
        BsaePage.switch_frame(elem6)
        sleep(1)
        elem4=BsaePage.search_elem(Bbselem_Iput.bbs_select_all)
        BsaePage.click(elem4)
        sleep(2)
        elem5=BsaePage.search_elem(Bbselem_Iput.bbs_delete_zhuti)
        BsaePage.click(elem5)


